package cn.sxt.users.service;

import java.util.List;
import java.util.Map;


import com.alibaba.fastjson.JSONObject;

import cn.sxt.common.util.PageInfoUtil;
import cn.sxt.questions.pojo.Columns;
import cn.sxt.users.pojo.Admins;
import cn.sxt.users.pojo.Role;


public interface IUserService {
	/**
	 * 管理员
	 * @param condMap
	 * @return
	 */
	/* findOne*/
	Admins findOneAdminsService(Map<String,Object> condMap);
	/*save*/
	JSONObject saveService(Admins admins);
	/*update*/
	JSONObject updateService(Admins admins);
	/*delete*/
	JSONObject deleteService(Admins admins);
	/*查询全部*/
	List<Admins> findListAdminsService(Map<String,Object> condMap,PageInfoUtil pageInfoUtil);
	
	/**
	 * 角色
	 * @param condMap
	 * @return
	 */
	/* findOne*/
	Role findOneRoleService(Map<String,Object> condMap);
	/*save*/
	JSONObject saveService(Role role);
	/*update*/
	JSONObject updateService(Role role);
	/*delete*/
	JSONObject deleteService(Role role);
	/*查询全部*/
	List<Role> findListRoleService(Map<String,Object> condMap,PageInfoUtil pageInfoUtil);
	
}
